package A;

import java.util.Scanner;

public class Test_01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你想要查询的数字：");
        int number = sc.nextInt();
        if (number % 3 == 0 && number % 5 == 0 && number % 7 == 0) {
            System.out.println(number + "能被3、5、7整除");
        } else if (number % 3 == 0 && number % 5 == 0) {
            System.out.println(number + "能被3、5整除");
        } else if (number % 3 == 0 && number % 7 == 0) {
            System.out.println(number + "能被3、7整除");
        } else if (number % 5 == 0 && number % 7 == 0) {
            System.out.println(number + "能被5、7整除");
        } else if (number % 3 == 0) {
            System.out.println(number + "能被3整除");
        } else if (number % 5 == 0) {
            System.out.println(number + "能被5整除");
        } else if (number % 7 == 0) {
            System.out.println(number + "能被7整除");
        } else {
            System.out.println(number + "不能被3或5或7整除");
        }
    }
}
